<?php
/*
*	Kleophatra - Open Source Content Management System
*	------------------------------------------------------------------------
*	Copyright (C) 2007-2010, Sergio Milardovich <smilardovich@yahoo.com.ar>
*	This program is Free Software.
*
*	@package	Kleophatra
*	@subpackage	/lib
*	@license	http://www.gnu.org/copyleft/gpl.html GNU/GPL License 2.0
*	@author		Sergio Milardovich <smilardovich@yahoo.com.ar>
*	@link		http://www.kleophatra.org
*/
require_once KLEO_LIB_DIR.'template.lib.php';

	class kleoload extends kleotemplate{
		function make_basics($buff, &$buff){
			global $basic_tpl;
			$this->apploadlib(KLEO_LIB_DIR."seo.lib.php", "kleoseo", $seo);
			$content = $seo->make_meta();
			$this->tpl_load(KLEO_FULL_TEMPLATE_ROUTE.'main.tpl', $buff);
			if(!isset($cbuff)){
				$cbuff = false;
			}
			if(!isset($cfbuff)){
				$cfbuff = false;
			}
			$this->sanitize_vars(array('$tags','$topics'));
			$this->tpl_set(array(
				"WEB_NAME" => KLEO_WEB_NAME,
				"WEB_SLOGAN" => KLEO_WEB_SLOGAN,
				"WEB_TITLE" => $content['title'], 
				"WEB_TEMPLATE" => KLEO_CURRENT_TEMPLATE, 
				"WEB_STYLE" => KLEO_CURRENT_STYLE,
				"KLEO_CURRENT_VERSION" => KLEO_CURRENT_VERSION,
				"KLEO_CODENAME_VERSION" => KLEO_CODENAME_VERSION,
				"COMMENTS_BOX" => utf8_encode($cbuff),
				"COMMENTS_FORM" => utf8_encode($cfbuff),
				"SITEURL" => KLEO_SITEURL,
				"WEB_LICENCE" => $this->get_core_value("WEB_LICENCE"),
				"WEB_RATING" => $this->get_core_value("WEB_RATING"),
				"WEB_TAGS" => $content['keywords']
			),
			false,$buff,$buff);

			$this->compile($buff, $buff);

		}

	}

?>
